﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Vit.Web.Models
{
    public class TagObject
    {
        [Key]
        [StringLength(50)]
        [Column(Order = 1)]
        [Required]
        public string TagName { get; set; }
        [Key]
        [StringLength(256)]
        [Column(Order = 2)]
        [Required]
        public string ObjectType { get; set; }
        [Key]
        [StringLength(256)]
        [Column(Order = 3)]
        [Required]
        public string ObjectId { get; set; }
        [StringLength(50)]
        public string Creator { get; set; }
        public DateTime CreateDate { get; set; }

        public virtual Tag Tag { get; set; }
    }
}
